public class code2 {
    //双指针+贪心（i跳跃）
    public int findLengthOfLCIS(int[] nums) {
        int n = nums.length;
        int ret = 0;
        for(int i=0;i<n;) {
            int j = i+1;
            while(j<n&&nums[j]>nums[j-1]) j++;
            ret = Math.max(ret,j-i);
            i = j;
        }
        return ret;
    }
}
